package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 系统参数表（支付折扣方式）
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class SystemParamDiscountDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 参数ID
     */
        private Integer id;
        /**
     * 维修站编码
     */
        private String dealerCode;
        /**
     * 支付类型
     */
        private Integer payType;
        /**
     * 支付名称
     */
        private String payName;
        /**
     * 折扣方式
     */
        private String discountValue;
        /**
     * 状态(10011001有效,10011002无效)
     */
        private Integer status;
            private Boolean isDeleted;
    
    public SystemParamDiscountDTO() {
        super();
    }




    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public Integer getPayType() {
        return payType;
    }


    public void setPayType(Integer payType) {
        this.payType = payType;
    }



    public String getPayName() {
        return payName;
    }


    public void setPayName(String payName) {
        this.payName = payName;
    }



    public String getDiscountValue() {
        return discountValue;
    }


    public void setDiscountValue(String discountValue) {
        this.discountValue = discountValue;
    }



    public Integer getStatus() {
        return status;
    }


    public void setStatus(Integer status) {
        this.status = status;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "SystemParamDiscountDTO{" +
        "id=" + id +
        ", dealerCode=" + dealerCode +
        ", payType=" + payType +
        ", payName=" + payName +
        ", discountValue=" + discountValue +
        ", status=" + status +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "id");
    }

}
